projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f786e0
)
Don't leak the bookmarks when enumerating them
author
Federico Mena Quintero
<federico@gnome.org>
Wed, 5 Oct 2011 14:53:09 +0000
(09:53 -0500)
committer
Federico Mena Quintero
<federico@gnome.org>
Tue, 4 Sep 2012 01:54:40 +0000
(20:54 -0500)
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
gtk/gtkplacessidebar.c
patch
|
blob
|
history
diff --git
a/gtk/gtkplacessidebar.c
b/gtk/gtkplacessidebar.c
index e71c31ac6cfd7a27be32e68df29b3eb8fe61298d..fe13811594f838ec3ca41e8c3b5f6281d7324abb 100644
(file)
--- a/
gtk/gtkplacessidebar.c
+++ b/
gtk/gtkplacessidebar.c
@@
-749,13
+749,15
@@
update_places (GtkPlacesSidebar *sidebar)
sidebar->uri, mount_uri, last_uri,
&last_iter, &select_path);
- g_object_unref (root);
g_object_unref (icon);
g_free (mount_uri);
g_free (tooltip);
g_free (bookmark_name);
}
+ g_slist_foreach (bookmarks, (GFunc) g_object_unref, NULL);
+ g_slist_free (bookmarks);
+
last_iter = add_heading (sidebar, SECTION_COMPUTER,
_("Computer"));